<template>
    <div>
        <comment-box :id="this.id"></comment-box>
    </div>
</template>

<script>
// 导入评论子组件
import comment from "../subcomponents/comment.vue";
export default {
    data(){
        return {
            id:this.$route.params.id,//获取当前页面id
        }
    },
    components :{
        "comment-box" : comment
    }
}
</script>

<style lang="scss" scoped>

</style>